package com.yx.shop.service.admin;

import com.yx.shop.entitly.Type;

import java.util.List;

/**
 * @Classname TypeService
 * @Description TODO:
 * @Date 2021/05/07 11:53
 * @Created by yx
 */
public interface AdminTypeService {
    /**
     * @Author:yx
     * @return java.util.List<com.yx.shop.entitly.Type>
     * @Date 2021/05/10 19:10
     * @param
     * @Description:获取商品分类
     **/
    List<Type> getAllType();

    /**
     * @Author:yx
     * @return boolean
     * @Date 2021/05/10 19:11
     * @param type
     * @Description:新增商品分类
     **/
    boolean insertType(Type type);

    /**
     * @Author:yx
     * @return boolean
     * @Date 2021/05/10 21:21
     * @param tid
     * @Description:根据tid删除类型分类
     **/
    boolean deleteTypeByTid(Integer tid);

}
